package edu.sctu.practice.class02.yangyuran.assign02;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Circle_c {
    public static void printCircle(Circle c) {

        System.out.println("圆的半径为：" + c.getRadius());
        System.out.println("圆的面积为：" + c.getArea());
    }

    public static void main(String[] args) {

        Circle_c.printCircle(new Circle(5));//静态方法直接实例化
        Circle_c.printCircle(new Circle(3));
        System.out.println("共创建了" + Circle.numOfObjects + "个圆");
    }


}

